import { consts } from "../pkg-00-const";
import { pickup, write, writeTemplate } from "./tool/scanutil";
const fileMapping = /index\.tsx?/;
const pickRule = ["export", "class", "?", "extends"];
export const scanner = {
  scan() {
    const pickups = pickup(consts.elmtFolderName, fileMapping, pickRule);
    writeTemplate(`template_${injectModule}.ts`, pickups, `virtual_${injectModule}.ts`);
    writeTemplate(`template_${typemodule}.ts`, pickups, `virtual_${typemodule}.ts`);
  }
};
const injectModule = "injection02elmtIOC";
const typemodule = "injection02elmtTD";
